- Barcode Label Printing Solution for Production Enterprises in Intranet Environment
- "PrintSpirit" Print Service Fails to Start Automatically Solution
- Introduction to Portable Mobile Printing Protocol CPCL
- Developing Label Printing Function for Information Systems at Minimal Cost with PrintSpirit Custom Edition
- Embed "PrintSpirit" into Third-Party Websites for Quick Label Printing
- How to Quickly Implement Label Printing Functionality in Information Systems
- Several Methods to Implement WEB Printing
- In-depth Understanding of Zebra Printers and ZPL Language: A Beginner's Guide
Graduation Project Support Plan: To support college students who require PrintSpirit for their graduation projects, we will provide the PrintSpirit Custom Edition for free. Please leave a message to apply.
Developing Label Printing Function for Information Systems at Minimal Cost with PrintSpirit Custom Edition
In the previous article 《How to Quickly Implement Label Printing Function in Information Systems》, it was introduced how to embed the PrintSpirit Label Editor to achieve a full-featured, high-quality label printing function at a low cost within an enterprise's own information system.
However, for certain specific scenarios where the system is relatively simple and labels are fixed, our need is merely to utilize PrintSpirit's label printing capability without developing a complete label management function. In such cases, consider using the PrintSpirit Custom Edition to further simplify development and reduce costs.
Advantages of the Custom Edition
The Custom Edition packages the selected labels and printing programs (SpiritWeb/SpiritCenter/SpiritDesktop) together into a unified installation program. During installation, the printing program and selected labels can be installed simultaneously, facilitating program distribution.
Compared to the non-custom edition, the Custom Edition requires no registration, has no usage time limit, no printing volume limit, and is low cost. This packaging method is particularly suitable for applications with relatively fixed label content, significantly reducing development and maintenance workload.
In addition, the Custom Edition has exactly the same functionality as the regular version.
How to Obtain the Custom Edition
Obtaining the Custom Edition is very simple. Just visit the official website of PrintSpirit and follow the page instructions. During the customization process, you can select the operating system type and choose the labels to be packaged.
Therefore, you need to prepare the labels to be customized in advance using the SpiritDesigner Online Edition. The production method is the same as the regular version, supporting all features, barcodes, QR codes, tables, variables, and serial numbers.
You can decide whether to print the PrintSpirit logo on the label based on your situation. If the logo is printed, you can receive varying degrees of discounts based on the logo's position and size, with the highest discount being free.
After customization is completed, you will receive a Custom Edition installation program that fully meets your needs, which can be downloaded and distributed freely.
Steps to Develop the Printing Program
When developing the printing program, first, you need to introduce the PrintSpirit JS file into the webpage of the information system. Choose the appropriate reference method based on the system's network protocol (http or https). For example:
<!-- If the main website is http -->
<script src="http://127.0.0.1:9011/js/spirit.js"></script>
<script src="http://127.0.0.1:19011/js/spirit.js"></script>
<!-- If the main website is https -->
<script src="https://127.0.0.1:9443/js/spirit.js"></script>
<script src="https://127.0.0.1:19443/js/spirit.js"></script>
Next, execute the printing operation. This mainly involves three steps: obtaining the printing instance, executing the print command, and closing the printing instance. Below is a specific code example:
SPIRIT.open(opt, function(p) {
p.PrintLabel(labelID, vars);
p.close();
});
Here, the SPIRIT.open
method is used to obtain the printing instance p
, with the parameter opt
being an object used to specify the printer's related parameters. The p.PrintLabel
method is used to execute the specific printing operation, with the first parameter labelID
being the unique identifier of the template, and the second parameter vars
being an object used to pass the variable values that need to be replaced in the template. Finally, the p.close()
method is used to close the printing instance and release system resources.
Summary
By using the PrintSpirit Custom Edition, enterprises can implement the label printing function in information systems at minimal cost in specific scenarios. The packaging method and no-registration feature of the Custom Edition make program distribution and usage more convenient. Combined with simple development steps, the application printing function can be quickly completed.